package com.avic.rong.api.mine;

import android.support.v4.app.FragmentActivity;

import com.avic.rong.api.HttpPostService;
import com.avic.rong.wedgit.StringUtil;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class MinePageApi extends BaseApi {

    private String token;
    private String deviceId;

    public MinePageApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }


    public void setArgument(String token,String deviceId){
        this.token = token;
        this.deviceId = deviceId;
    }



    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.minePage(token,deviceId);
    }

}
